package cn.yangliu.reciver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;

/**
 * 作者 杨柳
 * 创建时间 2017-08-18 16:37
 */
@RabbitListener(queues = "fanoutMessageA")
@Component
public class BroadcastListener1 {

    @RabbitHandler
    public void process(@Payload String data) {
        System.out.println("BroadcastListener1"+data);
    }
}
